class NewsController extends Controller
Controller for handling news-related requests.
- Annotations
- @Slf4j() @Singleton()
- Alphabetic
- By Inheritance
- NewsController
- Controller
- HeaderNames
- Status
- Results
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
- Private
Instance Constructors
- new NewsController(service: NewsService, sourcesService: NewsSourcesService, view: NotilyticsView, wordStatsView: WordStatsView, sourceProfileView: SourceProfileView, errorView: ErrorView, formFactory: FormFactory, messagesApi: MessagesApi)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(request: Request): CompletionStage[Result]
Renders the error view for any client or server errors.
Renders the error view for any client or server errors.
- request
The current HTTP request
- returns
A CompletionStage with an OK result with the rendered error HTML view
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def index(): CompletionStage[Result]
Redirects to the NotiLytics page.
Redirects to the NotiLytics page.
- returns
A CompletionStage of the redirect result to the NotiLytics page
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def notilytics(request: Request): CompletionStage[Result]
Renders the NotiLytics HTML view with default search criteria for the running session.
Renders the NotiLytics HTML view with default search criteria for the running session.
- request
The current HTTP request
- returns
A CompletionStage with an OK result with the rendered NotiLytics HTML view
- def search(request: Request): CompletionStage[Result]
Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.
Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.
- request
The current HTTP request
- returns
A CompletionStage containing the result of the search operation
- def sourceByName(name: String): CompletionStage[Result]
Retrieves and renders the profile for a given news source by its name.
Retrieves and renders the profile for a given news source by its name.
- name
The name of the news source
- returns
A CompletionStage with an OK result containing the rendered source profile
- def sources(request: Request): CompletionStage[Result]
Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.
Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.
- request
The current HTTP request
- returns
A CompletionStage containing the result of the search operation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def wordStats(request: Request, uuid: UUID): CompletionStage[Result]
Retrieves and renders the word statistics for a given search result in the current session.
Retrieves and renders the word statistics for a given search result in the current session.
- uuid
The UUID of the search result
- returns
A CompletionStage with an OK result containing the rendered word statistics
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)